//
//  VolunteerRecordViewCell.m
//  MemberProject
//
//  Created by vincent luo on 15/5/3.
//  Copyright (c) 2015年 MAC OS X. All rights reserved.
//

#import "VolunteerRecordViewCell.h"

@implementation VolunteerRecordViewCell

- (void)awakeFromNib {
    // Initialization code

        
//    NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"本积分由共青团提供"];
//    NSRange strRange = {0,[str length]};
////    [str addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInteger:NSUnderlineStyleSingle] range:strRange];
//
//    NSMutableDictionary *attributes = [NSMutableDictionary dictionaryWithObject:(id)[UIColor redColor].CGColor forKey:(id)NSBackgroundColorAttributeName];
//    [attributes setObject:(id)[NSNumber numberWithInteger:NSUnderlineStyleSingle] forKey:(id)NSUnderlineStyleAttributeName];
//    
//    [str addAttributes:attributes range:strRange];
//    [self.privateBtn setAttributedTitle:str forState:0];
//    [self.privateBtn setAttributedTitle:str forState:UIControlStateNormal];
    
    
}
-(void)setupPrivateBtn:(NSString *)content
{

        NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:content];
        NSRange strRange = {0,[str length]};
    //    [str addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInteger:NSUnderlineStyleSingle] range:strRange];
    
//        NSMutableDictionary *attributes = [NSMutableDictionary dictionaryWithObject:(id)[UIColor redColor].CGColor forKey:(id)NSBackgroundColorAttributeName];
    NSDictionary *attributes = @{NSForegroundColorAttributeName:[UIColor colorWithRed:77.0f/255.0f green:208.0f/255.0f blue:200.0f/255.0f alpha:1],NSUnderlineStyleAttributeName:[NSNumber numberWithInteger:NSUnderlineStyleSingle]};
//        [attributes setObject:(id)[NSNumber numberWithInteger:NSUnderlineStyleSingle] forKey:(id)NSUnderlineStyleAttributeName];
    
        [str addAttributes:attributes range:strRange];
        [self.privateBtn setAttributedTitle:str forState:0];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
